<?php defined('SYSPATH') or die('No direct script access.');

class Controller_ServiceHandler extends Controller {

	public $auth_required = FALSE;
	public $secure_actions = FALSE;
	
	
    public function __construct($request)
	{
		// Clean up the salt pattern and split it into an array
		parent::__construct($request);
	}
	
	public function before()
	{
		parent::before();

		$action_name = Request::instance()->action;
		if (($this->auth_required) || (is_array($this->secure_actions) && array_key_exists($action_name, $this->secure_actions)))
		{
//			Request::instance()->redirect('serviceError/showErrorMsg/'.'没有权限/不合法');
		}
	}

}
